import http from "../../utils/reuqest";
import { CompanyList, CompanyParams } from "./type";

export const getCompanys=(params?:CompanyParams)=>{

  return  http.get<CompanyList>('/company/list',params);

}

export const delCompany=(id:number)=>{

    console.log('删除1111',id);

    return  http.delete(`/company/delete/${id}`);
  
}

export const delCompanys=(ids:number[])=>{

    console.log('删除222',ids);
    return  http.post(`/company/deleteAll/`,ids);
  
}
